package instruction;

import java.io.File;
import java.io.FileInputStream;
import java.io.Serializable;

public class Record implements Serializable {
    private String type;
    private String sender_account;
    private String receiver_account;
    private String content;
    private String time;
  private byte [] picture;

    public Record(String type, String sender_account, String receiver_account, String content, String time) {
        this.type = type;
        this.sender_account = sender_account;
        this.receiver_account = receiver_account;
        this.content = content;
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSender_account() {
        return sender_account;
    }

    public void setSender_account(String sender_account) {
        this.sender_account = sender_account;
    }

    public String getReceiver_account() {
        return receiver_account;
    }

    public void setReceiver_account(String receiver_account) {
        this.receiver_account = receiver_account;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public byte[] getPicture() {
        return picture;
    }

    public void setPicture(byte[] picture) {
        this.picture = picture;
    }
}
